const { RESET_LUCK_DRAW_NUM } = require("./consts");
const mongoose = require('../../../dao/mongo/mongo');

const Schema = mongoose.Schema;

const luckDrawSchema = new Schema({
  uid: {    //用户ID
    type: String,
    required: true
  },
  luckDrawNum: {    //可抽奖次数
    type: Number,
    default: RESET_LUCK_DRAW_NUM
  }
});

module.exports = mongoose.model('luckDraw', luckDrawSchema);
